package com.w2cx.selenium.page;

import com.w2cx.selenium.base.DriverBase;
import com.w2cx.selenium.util.Locator;
import org.openqa.selenium.WebElement;

import java.util.List;

public class CommentManagePage extends BasePage {

    public CommentManagePage(DriverBase driver){
        super(driver);
    }

    //获取内容审核菜单
    public WebElement getContentReviewMenu(){
        //return this.getContentReviewMenu();
        List<WebElement> list = elements(Locator.getByLocator("firstMenuList"));
        WebElement element = list.get(4);
        System.out.println("找到元素:"+element.getText());
        return element;
    }


    //获取评论管理菜单
    public WebElement getCommentManageMenu(){
            WebElement element = element(Locator.getByLocator("commentManageMenu"));
            System.out.println("找到元素:"+element.getText());
            return element;
        }


    //获取第一条评论状态开关
    public WebElement getFirstStatus(){
        WebElement element = element(Locator.getByLocator("commentStatus"));
        return element;
    }




}
